{extend name="common/base" /} {block name="titlekeyword"}
<title>{$content}</title>

{/block} {block name="main"}
<h6>内容</h6>
<h6>代码</h6>
<pre>
		&lt;script language="javascript"&gt;
		window.onload = function () {
			var num1 = window.prompt("请输入第一个数");
			var num2 = window.prompt("请输入第二个数");
			if (num1 &gt; num2) {
				window.alert("num1&gt;num2");
			} else if (num1 &lt; num2) {
				window.alert("num1" &lt; "num2");
			}
		}
	
	&lt;/script&gt;

	 </pre> {/block} {block name="footjs"}
<script language="javascript">
	window.onload = function () {
		var num1 = window.prompt("请输入第一个数");
		var num2 = window.prompt("请输入第二个数");
		if (num1 > num2) {
			window.alert("num1>num2");
		} else if (num1 < num2) {
			window.alert("num1" < "num2");
		}
	}

</script> {/block}